package com.meituan.sdk.model.ddzhkh.clubactivity.clubactivityActivityParticipantsQuery;

import com.meituan.sdk.annotations.ApiMeta;
import com.google.gson.reflect.TypeToken;
import javax.validation.constraints.NotBlank;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;

/**
* 俱乐部活动参与人查询
* This file was automatically generated.
*/
@ApiMeta(
    path = "/ddzhkh/clubactivity/activity/participants/query",
    businessId = 59,
    apiVersion = "10003",
    apiName = "clubactivity_activity_participants_query",
    needAuth = true
)
public class ClubactivityActivityParticipantsQueryRequest implements MeituanRequest<ClubactivityActivityParticipantsQueryResponse> {
    /**
    * <p data-diff-id="ct-diff-id-5b37cef3-3f78-419c-828a-0d92552081d2">美团统一订单id</p>
    */
    @NotBlank(message = "unifiedOrderId不能为空")
    @SerializedName("unifiedOrderId")
    private String unifiedOrderId;

    public String getUnifiedOrderId() {
        return unifiedOrderId;
    }
    public void setUnifiedOrderId(String unifiedOrderId) {
        this.unifiedOrderId = unifiedOrderId;
    }


    @Override
    public MeituanResponse<ClubactivityActivityParticipantsQueryResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<ClubactivityActivityParticipantsQueryResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "ClubactivityActivityParticipantsQueryRequest{" + "unifiedOrderId=" + unifiedOrderId + "}";
    }
}
